package com.dyna.service.impl;

import com.dyna.bean.Payment;
import com.dyna.dao.PaymentDao;
import com.dyna.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;
    @Override
    public List<Payment> selectList() {
        return paymentDao.selectList();
    }

    @Override
    public Payment getById(Integer id) {
        return paymentDao.getById(id);
    }

    @Override
    public Integer addPayment(Payment payment) {
        return paymentDao.addPayment(payment);
    }
}
